<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="branchList.title"/></title>
<content tag="heading"><fmt:message key="branchList.heading"/></content>
<meta name="menu" content="BranchMenu"/>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editBranch.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<html:rewrite forward="mainMenu"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<display:table name="branchList" cellspacing="0" cellpadding="0"
    id="branchList" pagesize="25" class="table branchList"
    export="true" requestURI="">

    <display:column property="branchId" sortable="true" headerClass="sortable"
        url="/editBranch.html" paramId="branchId" paramProperty="branchId"
        titleKey="branchForm.branchId"/>
    <display:column property="branchName" sortable="true" headerClass="sortable"
         titleKey="branchForm.branchName"/>
    <display:column property="address" sortable="true" headerClass="sortable"
         titleKey="branchForm.address"/>
    <display:column property="telNo" sortable="true" headerClass="sortable"
         titleKey="branchForm.telNo"/>
    <display:setProperty name="paging.banner.item_name" value="branch"/>
    <display:setProperty name="paging.banner.items_name" value="branchs"/>
</display:table>

<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("branchList");
</script>
